﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyVisionSystem
{
    internal static class Program
    {
        /// <summary>
        /// 当前的活跃用户
        /// </summary>
        public static User CurrentUser = null;

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //用进程知识点来控制，防止多个同时运行


            if (new Frm_Loading().ShowDialog()==DialogResult.OK)
            {
                if (new Frm_Login().ShowDialog()== DialogResult.OK)
                {
                        Application.Run(new Frm_Main());
                }
            }
            
        }
    }
}
